package com.s69.appback.vo;

import java.util.List;

public class TreeVo {
    private Long id;
    private Long parentid;
    private String categoryname;
    private List<TreeVo> children;

    public TreeVo() {
    }

    public TreeVo(Long id, Long parentid, String categoryname, List<TreeVo> children) {
        this.id = id;
        this.parentid = parentid;
        this.categoryname = categoryname;
        this.children = children;
    }

    /**
     * 获取
     * @return id
     */
    public Long getId() {
        return id;
    }

    /**
     * 设置
     * @param id
     */
    public void setId(Long id) {
        this.id = id;
    }

    /**
     * 获取
     * @return parentid
     */
    public Long getParentid() {
        return parentid;
    }

    /**
     * 设置
     * @param parentid
     */
    public void setParentid(Long parentid) {
        this.parentid = parentid;
    }

    /**
     * 获取
     * @return categoryname
     */
    public String getCategoryname() {
        return categoryname;
    }

    /**
     * 设置
     * @param categoryname
     */
    public void setCategoryname(String categoryname) {
        this.categoryname = categoryname;
    }

    /**
     * 获取
     * @return children
     */
    public List<TreeVo> getChildren() {
        return children;
    }

    /**
     * 设置
     * @param children
     */
    public void setChildren(List<TreeVo> children) {
        this.children = children;
    }

    public String toString() {
        return "TreeVo{id = " + id + ", parentid = " + parentid + ", categoryname = " + categoryname + ", children = " + children + "}";
    }
}
